﻿<div class="card">
	<div class="card-header">
	<h5><i class="fa fa-file-o text-primary" ></i>&nbsp;DEMO添加</h5>
	</div>
	<div class="card-block">
		<form class="form-material" v-on:submit.prevent="onSubmit">
			<div class="form-group form-danger form-default">
			<input type="text" name="id" class="form-control" required="" v-model="vo.id">
			<span class="form-bar"></span>
			<label class="float-label">ID</label>
			</div>
			<div class="form-group form-default">
			<input type="text" name="name" class="form-control" v-model="vo.name" required="">
			<span class="form-bar"></span>
			<label class="float-label">名称</label>
			</div>
			<div class="text-center">
			  <button type="submit" class="btn btn-skew btn-success" ref="btnSubmit"><i class="fa fa-check"></i>保存</button>
              <button type="button" class="btn btn-skew btn-info" @click="toList"><i class="fa fa-mail-reply"></i>返回</button>
			</div>
		</form>
	</div><!--card-block -->
</div>

<script>
function _init (context) {
return {
	      mixins: [appAdd] 
		 ,methods:{
			getSaveUrl:function (){
				 return "demo/add";
			}
		 }
};
}
</script>    
</body>
</html>
